package Server.Model.Base;

import org.json.JSONObject;

public class MessageBase {
	private JSONObject jsonObject = new JSONObject();
	public void SetModel(String model){
		put("model", model);
	}
	public void SetCmd(String cmd){
		put("cmd", cmd);
	}
	public void put(String key,Object value){
		jsonObject.put(key, value);
	}
	public MessageBase(){
		
	}
	public MessageBase(String model){
		SetModel(model);
	}
	@Override
	public String toString(){
		return jsonObject.toString();
	}
}
